package com.octopus.yangj.customized.rule;

import com.octopus.kernal.model.BaseStruct;
import com.octopus.kernal.service.BusinessRuleInterface;
import com.octopus.yangj.generated.model.EmployeeStruct;

public class UserDeleteRule implements BusinessRuleInterface{

	@Override
	public boolean isAllowed(BaseStruct struct) {
		EmployeeStruct user = (EmployeeStruct)struct;
		if(user.getId() == 1){
			return false;
		}else{
			return true;
		}
	}

}
